﻿using System;
using System.Drawing;

namespace HslCommunication.Controls
{
	/// <summary>
	/// 辅助线对象
	/// </summary>
	// Token: 0x02000173 RID: 371
	internal class AuxiliaryLine : IDisposable
	{
		/// <summary>
		/// 实际的数据值
		/// </summary>
		// Token: 0x17000649 RID: 1609
		// (get) Token: 0x06001EA2 RID: 7842 RVA: 0x00093F30 File Offset: 0x00092130
		// (set) Token: 0x06001EA3 RID: 7843 RVA: 0x00093F38 File Offset: 0x00092138
		public float Value { get; set; }

		/// <summary>
		/// 实际的数据绘制
		/// </summary>
		// Token: 0x1700064A RID: 1610
		// (get) Token: 0x06001EA4 RID: 7844 RVA: 0x00093F41 File Offset: 0x00092141
		// (set) Token: 0x06001EA5 RID: 7845 RVA: 0x00093F49 File Offset: 0x00092149
		public float PaintValue { get; set; }

		/// <summary>
		/// 辅助线的颜色
		/// </summary>
		// Token: 0x1700064B RID: 1611
		// (get) Token: 0x06001EA6 RID: 7846 RVA: 0x00093F52 File Offset: 0x00092152
		// (set) Token: 0x06001EA7 RID: 7847 RVA: 0x00093F5A File Offset: 0x0009215A
		public Color LineColor { get; set; }

		/// <summary>
		/// 辅助线的画笔资源
		/// </summary>
		// Token: 0x1700064C RID: 1612
		// (get) Token: 0x06001EA8 RID: 7848 RVA: 0x00093F63 File Offset: 0x00092163
		// (set) Token: 0x06001EA9 RID: 7849 RVA: 0x00093F6B File Offset: 0x0009216B
		public Pen PenDash { get; set; }

		/// <summary>
		/// 辅助线的宽度
		/// </summary>
		// Token: 0x1700064D RID: 1613
		// (get) Token: 0x06001EAA RID: 7850 RVA: 0x00093F74 File Offset: 0x00092174
		// (set) Token: 0x06001EAB RID: 7851 RVA: 0x00093F7C File Offset: 0x0009217C
		public float LineThickness { get; set; }

		/// <summary>
		/// 辅助线文本的画刷
		/// </summary>
		// Token: 0x1700064E RID: 1614
		// (get) Token: 0x06001EAC RID: 7852 RVA: 0x00093F85 File Offset: 0x00092185
		// (set) Token: 0x06001EAD RID: 7853 RVA: 0x00093F8D File Offset: 0x0009218D
		public Brush LineTextBrush { get; set; }

		/// <summary>
		/// 是否左侧参考系，True为左侧，False为右侧
		/// </summary>
		// Token: 0x1700064F RID: 1615
		// (get) Token: 0x06001EAE RID: 7854 RVA: 0x00093F96 File Offset: 0x00092196
		// (set) Token: 0x06001EAF RID: 7855 RVA: 0x00093F9E File Offset: 0x0009219E
		public bool IsLeftFrame { get; set; }

		// Token: 0x06001EB0 RID: 7856 RVA: 0x00093FA8 File Offset: 0x000921A8
		protected virtual void Dispose(bool disposing)
		{
			bool flag = !this.disposedValue;
			if (flag)
			{
				if (disposing)
				{
					Pen penDash = this.PenDash;
					if (penDash != null)
					{
						penDash.Dispose();
					}
					this.LineTextBrush.Dispose();
				}
				this.disposedValue = true;
			}
		}

		/// <summary>
		/// 释放内存信息
		/// </summary>
		// Token: 0x06001EB1 RID: 7857 RVA: 0x00093FF1 File Offset: 0x000921F1
		public void Dispose()
		{
			this.Dispose(true);
		}

		// Token: 0x040006DD RID: 1757
		private bool disposedValue = false;
	}
}
